
<template>
  <div class="home">
    <div> 具名插槽的测试  </div>
    <h1>我是父组件</h1>
    <HelloWorld msg="Welcome to Your Vue.js App">
      <h2 slot="name">我的名字叫做{{name}}</h2>
      <h2 slot="age">我的年纪{{age}}</h2>
    </HelloWorld>
  </div>
</template>
 
<script>

// @ is an alias to /src
import HelloWorld from './components/HelloWorld.vue'
 
export default {
  name: 'Home',
  components: {
    HelloWorld
  },
  data(){
    return {
      name:"张三",
      age:18
    }
  }
}
</script>
 
